App.require(function () {
    var app = App.getCurrent();

    app.definePopUp("strfulldialog", {
        startEnter: function () {
            console.log("startEnter");
        },
        enterEnd: function () {
            console.log("enterEnd");
        },
        exitEnd: function (ev) {
            console.log("exitEnd");
        },
        beforeShow: function () {
            if (document.activeElement) document.activeElement.blur();
            if (this.data.pagename) {
                this.currentName = this.data.pagename;
                delete this.data.pagename;
                return true;
            }
        }
    })
});